import React from "react"
import Home from "@/pages/home"
// 懒加载组件
import lazyLoad from "@/utils/router/lazyLoad"
// Navigate 重定向组件
import { Navigate } from "react-router-dom"

const routes = [
    {
        path: "/",
        element: <Home/>,
        children: [
            {
                path: "/notice",
                element: lazyLoad('pages/notice/notice'),
            },
            {
                path: "/addNotice",
                element: lazyLoad('pages/notice/addNotice'),
            },
        ]
    },
]

export default routes
